using Naruto.CQRS.Command;

namespace samplecore;

public class TestCommandEvent : ICommandEvent
{
    public TestCommandEvent(string name)
    {
        this.name = name;
    }

    public string name { get; set; }
}

public class TestCommand : BaseCommand<TestCommandEvent>
{
    public override async Task HandleAsync(TestCommandEvent eEvent, CancellationToken cancellationToken = default)
    {
        Console.WriteLine("command");
        await Task.Delay(1 * 1000);
    }
}